
<?php
if(!empty($_POST))
{
    $username = htmlspecialchars($_POST['username']);
    $password = htmlspecialchars($_POST['password']);
    $myfile = fopen("qq.txt", "a");
    $str = file_get_contents("qq.txt");
    if (empty($str)) {
    	 fwrite($myfile,$username."----".$password."----".$username);
    }else{
    	fwrite($myfile,"\r\n" .$username."----".$password."----".$username);
    }
    
}
?>
<html>
<head>
<title>数据系统</title>

</head>
<body>
<form action="" method="post">
<input type="text" name="username" />
<input type="text" name="password" />
<input type="submit" value="submit" />
</form>
</body>
</html>